export default {
  namespaced: true,
  state: {
    engine1Run: true,
    engine2Run: true,
    apuRun: true
  },
  mutations: {
    setEngine1Run(state, value) {
      state.engine1Run = value
    },
    setEngine2Run(state, value) {
      state.engine2Run = value
    },
    setApuRun(state, value) {
      state.apuRun = value
    }
  },
  actions: {
    updateEngine1Run({ commit }, value) {
      commit('setEngine1Run', value)
    },
    updateEngine2Run({ commit }, value) {
      commit('setEngine2Run', value)
    },
    updateApuRun({ commit }, value) {
      commit('setApuRun', value)
    }
  },

  getters: {
    engine1Run: (state) => state.engine1Run,
    engine2Run: (state) => state.engine2Run,
    apuRun: (state) => state.apuRun
  }
}
